-
Notifications
You must be signed in to change notification settings - Fork 852
Allow future addition of Histogram MinMax via View #2705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow future addition of Histogram MinMax via View #2705
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2705 +/- ##
==========================================
+ Coverage 82.93% 82.96% +0.02%
==========================================
Files 249 250 +1
Lines 8704 8705 +1
==========================================
+ Hits 7219 7222 +3
+ Misses 1485 1483 -2
|
|
|
||
| namespace OpenTelemetry.Metrics | ||
| { | ||
| public class HistogramConfiguration : MetricStreamConfiguration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to make this an abstract class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need things like below in the future.
.AddView(instrumentName: "MyHistogram", new HistogramConfiguration() { Name = "newname", RecordMinMax = false })
|
@utpilla is checking if this can be added after 1.2.0 as well, if yes, will revert to avoid the confusion when one uses this: This can be added after |
MinMax is not supported currently, so not exposing any setting for that publicly. But this introduces a base class
HistogramConfigurationto holdRecordMinMaxas it'll be applied toExplicitBucketHistogramandExponentialHistogram(when that feature is added). Alternate would be to addRecordMinMaxto bothExplicitBucketHistogramandExponentialHistogram